package com.cdtu.vo;

import com.cdtu.entity.Admin;
import com.cdtu.entity.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class AddTaskVo {
    @JsonSerialize(using = ToStringSerializer.class)
    private long id;
    private String title;
    private String grade;
    private String detail;
    private int urgent;
    private Admin admin;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    private int userNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;
    private String address;
    private String imageSrc;
    private boolean finished;
    private List<Long> activeUserList;
    private List<Long> actCertify;
    private List actSpecialType;
    private List<User> designateUserList;
    private List<ResourceVO> resourceList;
    //报名参加的人员
    private List<User> joinedUser;
    //预备人员
    private List<User> prepareUser;
    private Position position;
}
